package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum FeedBackTypeEnum {
    PROBLEM_FEEDBACK((byte) 1, "功能异常"),
    FUNCTION_FEEDBACK((byte) 2, "优化建议");

    private Byte value;
    private String desc;

    public static FeedBackTypeEnum enumOf(Byte value) {
        for (FeedBackTypeEnum identity : values()) {
            if (identity.value.equals(value)) {
                return identity;
            }
        }
        return null;
    }
}
